package com.wifi.eshipewifi;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import android.widget.LinearLayout;

public class SettingActivity extends Activity implements View.OnClickListener {
    ImageButton back;
    LinearLayout ll_setting;
    LinearLayout ll_sign1;
    LinearLayout ll_wifi;
    LinearLayout ll_router;
    LinearLayout ll_about;
    LinearLayout ll_password;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting);


        ll_setting = (LinearLayout) findViewById(R.id.ll_setting);
        ll_sign1 = (LinearLayout) findViewById(R.id.ll_sign1);
        ll_about = (LinearLayout) findViewById(R.id.ll_about);
        ll_wifi = (LinearLayout) findViewById(R.id.ll_wifi);
        ll_router = (LinearLayout) findViewById(R.id.ll_router);
        ll_password = (LinearLayout) findViewById(R.id.ll_password);
        back = (ImageButton) findViewById(R.id.ib_back);
        back.setOnClickListener(this);
        ll_password.setOnClickListener(this);
        ll_about.setOnClickListener(this);
        ll_router.setOnClickListener(this);
        ll_sign1.setOnClickListener(this);
        ll_setting.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.ib_back:
                this.finish();
                break;
            case R.id.ll_sign1:
                Intent intent=new Intent(SettingActivity.this,NetWorkSetting.class);
                startActivity(intent);
                break;
            case R.id.ll_setting:
                Intent intent1=new Intent(SettingActivity.this,WifiSettingActivity.class);
                startActivity(intent1);
                break;

            case R.id.ll_router:
                Intent intent2=new Intent(SettingActivity.this,RouterSettingActivity.class);
                startActivity(intent2);
                break;
            case R.id.ll_password:
                Intent intent4=new Intent(SettingActivity.this,PassWordSettingActivity.class);
                startActivity(intent4);
                break;

            case R.id.ll_about:
                Intent intent3=new Intent(SettingActivity.this,AboutActivity.class);
                startActivity(intent3);
                break;
        }
    }
}
